//
//  ColdTableViewCell.m
//  fultureweather
//
//  Created by 王展 on 15/11/5.
//  Copyright © 2015年 wangzhan. All rights reserved.
//

#import "ColdTableViewCell.h"

@implementation ColdTableViewCell

-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self createColdView];
    }
    return self;
}

-(void)createColdView
{
    UIImage *logoImage = [UIImage imageNamed:@"iconfont-medkit"];
    UIImageView *logoImageView = [[UIImageView alloc] initWithFrame:CGRectMake(20 * XWIDTH, 10 * XHIGHT, 30 * XHIGHT, 30 * XHIGHT)];
//    coldImageView.backgroundColor = [UIColor redColor];
    logoImageView.image = logoImage;
    [self.contentView addSubview:logoImageView];
    
    UIImage *pushImage = [UIImage imageNamed:@"iconfont-qianjin"];
    UIImageView *pushImageView = [[UIImageView alloc] initWithFrame:CGRectMake(WIDTH - 50 * XWIDTH, 10 * XHIGHT, 30 * XHIGHT, 30 * XHIGHT)];
    pushImageView.image = pushImage;
    [self.contentView addSubview:pushImageView];
    
    UILabel *logoLabel = [[UILabel alloc] initWithFrame:CGRectMake(70 * XWIDTH, 10 * XHIGHT, 180 * XWIDTH, 30 * XHIGHT)];
    logoLabel.text = @"感冒指数";
    logoLabel.font = [UIFont systemFontOfSize:19 * XWIDTH];
    logoLabel.textColor = [UIColor whiteColor];
    [self.contentView addSubview:logoLabel];
}






-(void)layoutSubviews
{
    [super layoutSubviews];
    self.backgroundColor = [UIColor clearColor];
}

@end
